
package fr.afcepf.atod21.ws.fournisseur;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;


/**
 * <p>Java class for commandeFournisseur complex type.
 * 
 * <p>The following schema fragment specifies the expected content contained within this class.
 * 
 * <pre>
 * &lt;complexType name="commandeFournisseur">
 *   &lt;complexContent>
 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       &lt;sequence>
 *         &lt;element name="datecommande" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="datelivraison" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
 *         &lt;element name="idcommande" type="{http://www.w3.org/2001/XMLSchema}int"/>
 *         &lt;element name="lignedecommandeFournisseurs" type="{http://interfaces.fournisseur.atod21.afcepf.fr/}lignedecommandeFournisseur" maxOccurs="unbounded" minOccurs="0"/>
 *         &lt;element name="montantcommande" type="{http://www.w3.org/2001/XMLSchema}decimal" minOccurs="0"/>
 *       &lt;/sequence>
 *     &lt;/restriction>
 *   &lt;/complexContent>
 * &lt;/complexType>
 * </pre>
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "commandeFournisseur", propOrder = {
    "datecommande",
    "datelivraison",
    "idcommande",
    "lignedecommandeFournisseurs",
    "montantcommande"
})
public class CommandeFournisseur {

    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar datecommande;
    @XmlSchemaType(name = "dateTime")
    protected XMLGregorianCalendar datelivraison;
    protected int idcommande;
    @XmlElement(nillable = true)
    protected List<LignedecommandeFournisseur> lignedecommandeFournisseurs;
    protected BigDecimal montantcommande;

    /**
     * Gets the value of the datecommande property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getDatecommande() {
        return datecommande;
    }

    /**
     * Sets the value of the datecommande property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setDatecommande(XMLGregorianCalendar value) {
        this.datecommande = value;
    }

    /**
     * Gets the value of the datelivraison property.
     * 
     * @return
     *     possible object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public XMLGregorianCalendar getDatelivraison() {
        return datelivraison;
    }

    /**
     * Sets the value of the datelivraison property.
     * 
     * @param value
     *     allowed object is
     *     {@link XMLGregorianCalendar }
     *     
     */
    public void setDatelivraison(XMLGregorianCalendar value) {
        this.datelivraison = value;
    }

    /**
     * Gets the value of the idcommande property.
     * 
     */
    public int getIdcommande() {
        return idcommande;
    }

    /**
     * Sets the value of the idcommande property.
     * 
     */
    public void setIdcommande(int value) {
        this.idcommande = value;
    }

    /**
     * Gets the value of the lignedecommandeFournisseurs property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the lignedecommandeFournisseurs property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getLignedecommandeFournisseurs().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link LignedecommandeFournisseur }
     * 
     * 
     */
    public List<LignedecommandeFournisseur> getLignedecommandeFournisseurs() {
        if (lignedecommandeFournisseurs == null) {
            lignedecommandeFournisseurs = new ArrayList<LignedecommandeFournisseur>();
        }
        return this.lignedecommandeFournisseurs;
    }

    /**
     * Gets the value of the montantcommande property.
     * 
     * @return
     *     possible object is
     *     {@link BigDecimal }
     *     
     */
    public BigDecimal getMontantcommande() {
        return montantcommande;
    }

    /**
     * Sets the value of the montantcommande property.
     * 
     * @param value
     *     allowed object is
     *     {@link BigDecimal }
     *     
     */
    public void setMontantcommande(BigDecimal value) {
        this.montantcommande = value;
    }

	public void setLignedecommandeFournisseurs(
			List<LignedecommandeFournisseur> lignedecommandeFournisseurs) {
		this.lignedecommandeFournisseurs = lignedecommandeFournisseurs;
	}

}
